<template>
  <div class="home">
     <home-head></home-head>
     <home-swiper :swiperList="swiperList"></home-swiper>
  </div>
</template>

<script>
import HomeHead from './components/Head'
import HomeSwiper from './components/swiper'
import {HTTP} from '../../models/HTTP'
const http =new HTTP();
export default {
  name: 'home',
  components: {
     HomeHead,
     HomeSwiper
  },
  data(){
    return {
     swiperList:[]
    }
  },
  mounted() {
    http.request({
      url:"vueProject"
    }).then(res=>{
      var swiperList=res.data.swiperList;
      this.swiperList=swiperList;
      console.log(swiperList)
    })
  },
}
</script>
